package com.liumuxian.exam.pojo;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "tb_articleattribute")
public class ArticleAttribute implements Serializable {
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "articleid",length = 20)
    private String articleid;//文章id
    @Column(name = "title")
    private String title;//章节标题
    @Column(name = "content")
    private String content;//章节内容
    @Column(name = "creatdate")
    private Date creatdate;
    @Column(name = "updatedate")
    private Date updatedate;
    @Column(name = "weight",length = 2)
    private Integer weight;//排序值
}
